/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cms.action;


import cms.util.Constants;
import cms.util.EjbLocator;
import com.opensymphony.xwork2.ActionSupport;

/**
 *
 * @author Gary
 */
public class LoginAction extends ActionSupport{
    
    public LoginAction() {
    }
    
    public String execute() throws Exception {
      //  LoginSessionBeanRemote remot = EjbLocator.getInstance().LookUpBeanByName(LoginSessionBeanRemote.class, "LoginSessionBean");
      //  boolean isSuccess =remot.UserLogin("sbbobo","123456", 1);
     //   if (isSuccess)
    //    {
            return Constants.SUCCESS;
    //    }
    //    else 
    //    {
     //       return Constants.FAILURE;
    //    }
    }
}
